﻿package pw.archipelag.loaderGame.configVars {
	import base.bridgeAs2As3.BridgeFromToAs2;
	import base.bridgeAs2As3.BridgeFromToAs2Event;
	import pw.archipelag.loaderGame.Config;
	
	public class ConfigVarsFromToAs2 extends BridgeFromToAs2 {
		
		public function ConfigVarsFromToAs2(scorePoints: uint, scorePercent: uint): void {
			this.call("configVars", [Config.ID_SESSION, scorePoints, scorePercent, Config.URL_SERVICE]);
		}
		
		public function backConfigVars(args: Array): void {
			var isLoaded: Boolean = args[0];
			var nodeResult : String = args[1];
			this.dispatchEvent(new BridgeFromToAs2Event(BridgeFromToAs2Event.EXIT, {isLoaded: isLoaded, nodeResultSave: nodeResult}));
			this.close();
		}
		
	}
	
}